package top.healthylife.gateway.platform.eye.dto.touzijigou.EyeReqStatisticalAnalysisDto.req;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import top.healthylife.gateway.dto.annotation.ApiField;
import top.healthylife.gateway.dto.processor.GroupOneMustBeFilledInProcessor;
import top.healthylife.gateway.dto.request.req.ApiReqDto;

import javax.validation.constraints.NotNull;

/**
* @author: GenUtil
* @date: 2020-12-11 23:39:04
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel("统计分析[987]")
public class EyeReqStatisticalAnalysisDto extends ApiReqDto {

    @ApiField("年份")
    @JsonProperty("year")
    @ApiModelProperty(value = "年份", example = "2019")
    private Integer year;

    @ApiField(value = "机构名", necessity = true, group = GroupOneMustBeFilledInProcessor.class)
    @NotNull(message = "机构名")
    @JsonProperty("name")
    @ApiModelProperty(value = "机构名", example = "百度投资并购部")
    private String name;

}
